<%--
  Created by IntelliJ IDEA.
  User: fire'ge
  Date: 2022/4/4
  Time: 14:30
  To change this template use File | Settings | File Templates.
--%>
<%@ page contentType="text/html;charset=UTF-8" isELIgnored="false" %>
<%@ taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core" %>
<html>
<head>
    <title>文章大厅</title>
    <link rel="stylesheet" href="/jspdemo/css/ArticleLobby.css" type="text/css">
</head>
<body>
<div>
    <table id="name-label">
        <tr>
            <td align="center" colspan="4">你好！${user.name}
                <a href="/jspdemo/exitServlet">退出</a>  </td>
        </tr>
    </table>
    <table>
        <tr>
            <td id= "tableTopic">
                文  章  大  厅
            </td>
        </tr>
        <c:forEach items="${articles}" var="article">
            <tr>
                <td class="articleTopic">
                    <a href="/jspdemo/displayArticleServlet?id=${article.id}">
                            ${article.topic}
                    </a>
                </td>
            </tr>
            <tr>
                <td class="author">
                    作者为：${article.author}
                </td>
            </tr>
        </c:forEach>

    </table>
</div>
</body>
</html>
